<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<script src="../../libs/jquery.min.js"></script>
<script src="../../plugins/layer/layer.js"></script>
<script src="../../libs/bootstrap.min.js"></script>
<script src="../../libs/vue.min.js"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
<script src="../../js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<a v-if="hasPermission('generator:employee:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('generator:employee:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('generator:employee:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
			   	<div class="col-sm-2 control-label">员工角色</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.employeetype" placeholder=""/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label">转正日期</div>
			   	<div class="col-sm-10">
			      <input type="date" class="form-control" v-model="employee.confirmdate" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.name" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工性别</div>
			   	<div class="col-sm-10">
			      <select v-model="employee.gender" class="form-control">
						<option value="0" selected="selected">请选择</option>
						<option value="1" >男</option>
						<option value="2">女</option>
				  </select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工生日</div>
			   	<div class="col-sm-10">
			      <input type="date" class="form-control" v-model="employee.birthday" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工证件类型</div>
			   	<div class="col-sm-10">
			      <select id="idtype" class="form-control" v-model="employee.idtype" >
			      	
			      </select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">员工证件号码</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.idno" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">合同起期</div>
			   	<div class="col-sm-10">
			      <input type="date" class="form-control" v-model="employee.startdate" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">合同止期</div>
			   	<div class="col-sm-10">
			      <input type="date" class="form-control" v-model="employee.enddate" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">入职日期</div>
			   	<div class="col-sm-10">
			      <input type="date" class="form-control" v-model="employee.entrydate" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">校区</div>
			   	<div class="col-sm-10">
			      <select class="form-control" v-model="employee.schoolno" id="schoolno">
			      	
			      </select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">部门</div>
			   	<div class="col-sm-10">
			      <select class="form-control" v-model="employee.deptno" id="deptno">
			      
			      </select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">职务</div>
			   	<div class="col-sm-10">
			      <select class="form-control" v-model="employee.job" id="job">
			      
			      </select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">职级</div>
			   	<div class="col-sm-10">
			      <select class="form-control" v-model="employee.jobgrade" id="jobgrade">
			      
			      </select>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">工资基准</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.salarygrade" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">联系电话</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.phone" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">微信</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.webchat" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">紧急联系人</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.contacter" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">紧急联系人电话</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.conphone" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备用1</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.standbyflag1" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备用2</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.standbyflag2" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">备用3</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="employee.standbyflag3" placeholder=""/>
			    </div>
			</div>
				
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
<script src="../../js/modules/generator/employee.js"></script>
</body>
</html>